  class Date {
    public int year;
    public int month;
    public int day;
    public void setData(int year,int month,int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }
    public void show() {
        System.out.println(this.year+"年"+this.month+"月"+this.day+"日");
    }
}
public class Test {
    public static void main(String[] args) {
        Date date1 = new Date();
        Date date2 = new Date();
        date1.setData(2023,3,10);
        date2.setData(2023,3,11);
        date1.show();
        date2.show();
    }
}

